package com.yiyuplatform.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.*;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @Description
 * @Author dalong
 * @Date 2021-11-08
 */

@Getter
@Setter
@ToString
@NoArgsConstructor
@EqualsAndHashCode
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
@Entity
@Table(name = "chat_t_contact")
public class ChatTContact implements Serializable {
    private static final long serialVersionUID = 5373729948344320909L;

    /**
     * 聊天会话的session_key
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "CHAT_SESSIONKEY")
    private String chatSessionkey;

    /**
     * 聊天人一的uuid
     */
    @Column(name = "CHAT_ME_ID")
    private String chatMeId;

    /**
     * 聊天人二的uuid
     */
    @Column(name = "CHAT_FRD_ID")
    private String chatFrdId;

}
